<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<link rel='stylesheet' href='../../../lib/layui/css/layui.css' />
<style>
    .main{
        width: 1200px;
        height: 700px;
        margin-top: 20px;
        display: inline-block;
        text-align: left;
        background-image:url("../../../img/SHGXH.jpg");
        background-size:cover;
        position:relative;
    }
    .main>.left{
        width: 700px;
        height: 680px;
        float: left;
        border: 1px solid black;
        margin: 9px 19px 9px 9px;
    }
    .main>.right{
        width: 430px;
        height: 680px;
        float: right;
        border: 1px solid black;
        margin: 9px 19px 9px 19px;
        text-align: center;
    }
    .title{
        height: 30px;
        width: 400px;
        display: inline-block;
        margin: 10px 0;
        border: 1px solid black;
        font-size: 20px;
        line-height: 30px;
    }
    .layui-icon-size{
        font-size: 20px;
    }
    .chatView{
        width: 380px;
        height: 480px;
        padding: 10px;
        text-align: left;
        display: inline-block;
        border: 1px solid black;
        font-size: 18px;
        overflow: auto;
    }
    .scrollbar {
        width: 30px;
        height: 300px;
    }
    .chatView::-webkit-scrollbar {
        /*滚动条整体样式*/
        width : 10px;  /*高宽分别对应横竖滚动条的尺寸*/
        height: 1px;
    }
    .chatView::-webkit-scrollbar-thumb {
        /*滚动条里面小方块*/
        border-radius   : 10px;
        background-color: skyblue;
        background-image: -webkit-linear-gradient(
                45deg,
                rgba(255, 255, 255, 0.2) 25%,
                transparent 25%,
                transparent 50%,
                rgba(255, 255, 255, 0.2) 50%,
                rgba(255, 255, 255, 0.2) 75%,
                transparent 75%,
                transparent
        );
    }
    .chatView::-webkit-scrollbar-track {
        /*滚动条里面轨道*/
        box-shadow   : inset 0 0 5px rgba(0, 0, 0, 0.2);
        background   : #ededed;
        border-radius: 10px;
    }
    .tool{
        display: inline-block;
        height: 95px;
        width: 400px;
        margin-top: 10px;
        border: 1px solid black;
    }
    .chatInp{
        width: 350px;
        height: 30px;
        font-size: 20px;
        padding: 0 10px;
        border-radius: 15px;
        margin-top: 5px;
    }
    .btnTool{
        margin-top: 8px;
    }
    .gameMain{
        display: none;
        text-align: center;
    }
    .other{
        color: dodgerblue;
        text-align: left;
    }
    .myself{
        width:372px;
        color: mediumvioletred;
        text-align: right;
    }
    .line{
        padding: 2px 0;
    }
    .notice{
        width: 372px;
        text-align: center;
        margin:4px 10%;
        padding: 5px 0;
        background-color: #ccc;
        color: white;
        border-radius: 50px;
    }
    .layui-table-cell{
        height: auto;
    }
    #game {
        border: 1px solid black;
    }
</style>
<body style='text-align: center'>
    <div class="main">
        <div class="left">
            <div class="playerList">
                <table style="height: 100%;overflow: auto" id="list" lay-filter="list"></table>
            </div>
            <div class="gameMain">
                <div>当前执子:<span id="color"></span>________己方：<span id="myselfColor"></span>
<!--                    ,剩余时间:<span id="time"></span>秒<button id="back">悔棋</button>-->
                </div>
                <canvas id="game" style="background-color: rgb(249, 180, 60)"></canvas>
            </div>
        </div>
        <div class="right">
            <div class="title">
                房间名：<span id="roomName">xxxx</span>
                <span id="hasPwd"><i class="layui-icon layui-icon-size layui-icon-password"></i></span>
            </div>
            <div class="chatView">
                <div class="scrollbar" id="chatView">

                </div>
            </div>
            <div class="tool">
                <input id="inp" class="chatInp"/>
                <div>
                    <button class="layui-btn btnTool" id="ready">准备</button>
                    <button id="outRoom" class="layui-btn btnTool layui-btn-danger">退出</button>
                </div>
            </div>
        </div>
    </div>
</body>
<script src='../../../lib/jquery.js'></script>
<script src='../../../lib/layui/layui.js'></script>
<script src='../../../config.js'></script>
<script src='../js/room.js'></script>
<script src='../js/game.js'></script>
</html>